let  userModel = require("./userTable");


let  user  = {
    register:(info)=>{//info就是用户对象
      return  userModel.insertMany([info])
    },
    query:(params)=>{
        return  userModel.find(params)
    }
}

module.exports = user;